<template>
  <div>
    <CloudRow type="flex">
      <CloudCol :span="6" :order="4"> 1 col-order-4 </CloudCol>
      <CloudCol :span="6" :order="3"> 2 col-order-3 </CloudCol>
      <CloudCol :span="6" :order="2"> 3 col-order-2 </CloudCol>
      <CloudCol :span="6" :order="1"> 4 col-order-1 </CloudCol>
    </CloudRow>
  </div>
</template>
<script>
export default {
  title: '3.Flex 排序 ',
  subTitle: '从堆叠到水平排列。通过 Flex 布局的 Order 来改变元素的排序。',
  data() {
    return {}
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.ant-col {
  text-align: center;
  color: #ffffff;
}
.ant-row-flex > div:not(.gutter-row):nth-child(odd),
.ant-row > div:not(.gutter-row):nth-child(odd),
.ant-row-flex > div:not(.gutter-row):nth-child(odd),
.ant-row > div:not(.gutter-row):nth-child(odd) {
  background: rgba(0, 160, 233, 0.7);
}
.ant-row-flex > div:not(.gutter-row),
.ant-row > div:not(.gutter-row),
.ant-row-flex > div:not(.gutter-row),
.ant-row > div:not(.gutter-row) {
  background: #00a0e9;
  padding: 16px 0;
}
</style>